package com.mhh.selary.backend.dto.project;

import com.mhh.sdk.beans.dto.BaseDTO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.util.List;

/**
 * @author mhh
 * @date 2020-09-15 13:05:30
 */
@Getter
@Setter
@Builder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel("分组节点信息")
public class GroupNode extends BaseDTO {

    @ApiModelProperty(value = "分组id")
    private Long id;

    @ApiModelProperty(value = "分组名称")
    private String groupName;

    @ApiModelProperty(value = "分组编号")
    private String groupCode;

    @ApiModelProperty(value = "分组子节点")
    private List<GroupNode> children;

    @ApiModelProperty(hidden = true)
    private Long parentId;
}
